Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TEL-4972: create switch_core_session_get_channel_unsafe in order to avoid crash when no channel #100

Closed
wants to merge 1 commit into from

Conversation

StefanYohansson
Copy link

the switch_core_session_get_channel has an assert that leads to a crash when the channel is not ready or already hang up which happens a lot with Push Notification calls.

see mod_telnyx_rtc PR #49

@dev-ryanc
Copy link
Collaborator

The reason why they added the assert is that there shouldn't be a case where a session doesn't have a channel. When you create a session, it will always create a channel. You won't be able to destroy the channel without killing the session first.

@piotrgregor
Copy link

The reason why they added the assert is that there shouldn't be a case where a session doesn't have a channel. When you create a session, it will always create a channel. You won't be able to destroy the channel without killing the session first.

@dev-ryanc assert should be disabled on production build (actually Stefan needs it to be disabled on debug build too and I can understand this, so this PR makes sense, only the content should be changed slightly)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants